function google_map(latlng) {
    var latlng = latlng.split(",");
    var lat = latlng[0];
    var lng = latlng[1];

    var center_position = new google.maps.LatLng(lat, lng);
    var marker_position = new google.maps.LatLng(lat, lng);
    var marker;
    var map;

    var mapOptions = {
        zoom: 15,
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        center: center_position,

        panControl: false,
        mapTypeControl: false,
        zoomControl: true,
        zoomControlOptions: {
            style: google.maps.ZoomControlStyle.SMALL,
            position: google.maps.ControlPosition.TOP_RIGHT
        },
        streetViewControl: false,
        scaleControl: false,
        rotateControl: false,
        overviewMapControl: false
    };

    map = new google.maps.Map(document.getElementById('map'), mapOptions);

    marker = new google.maps.Marker({
        map:map,
        draggable:false,
        animation: google.maps.Animation.DROP,
        position: marker_position,
        icon : new google.maps.MarkerImage('/files/img/red_flag.png',
            new google.maps.Size(69,48),
            new google.maps.Point(0,0),
            new google.maps.Point(35,48)
        ),
        shadow: new google.maps.MarkerImage('/files/img/red_flag_shadow.png',
            new google.maps.Size(97,48),
            new google.maps.Point(0,0),
            new google.maps.Point(35,48)
        )
    }); 



    var boxText = document.createElement("div");
    boxText.style.cssText = "border: 2px solid #357EBD; margin-top: 8px; background: #fff; padding: 5px; font-size: 12px";
    boxText.innerHTML = infoBoxHtml;

    var infoBoxOptions = {
        content: boxText
        ,disableAutoPan: false
        ,maxWidth: 0
        ,pixelOffset: new google.maps.Size(-140, 0)
        ,zIndex: null
        ,boxStyle: { 
            background: 'url("/files/img/map/tipbox.gif") no-repeat scroll 133px 0 transparent'
            ,opacity: 1
            ,width: "280px"
        }
        ,closeBoxMargin: "12px 4px 4px 4px"
        ,closeBoxURL: "/files/img/map/close.gif"
        ,infoBoxClearance: new google.maps.Size(1, 1)
        ,isHidden: false
        ,pane: "floatPane"
        ,enableEventPropagation: false
    };
    var infoBox = new InfoBox(infoBoxOptions);
    infoBox.open(map, marker);
    
    google.maps.event.addListener(marker, "click", function (e) {
        infoBox.open(map, this);
    });

    google.maps.event.trigger(map, 'resize');
    map.setZoom(map.getZoom());
    //        map.fitBounds(bounds);
}
$(function(){
    $("#image-gallery").mCustomScrollbar({
        scrollInertia:300,
        horizontalScroll:true,
        advanced:{
            autoExpandHorizontalScroll:true
        },
        scrollButtons:{
            enable:true
        },
        theme:"dark-thick"
    });
})